<?php
class smallstock extends Zcontroller{
	public function index()
	{   
        $this->load->helper('url_helper');
        $this->load->view('web_application/small_stock/addnew_company');
        $this->load->template("web_application/small_stock/addnew_company", "Add New Company");
    }
    function view_smallstock(){
    	$this->load->model("m_small_stock");
    	$Z_USER = Zsession::getUserFromSession(); 
    	$userid=$Z_USER["user_id"];
    	$data=array();
    	if(isset($userid)){
    		$data['company']=$this->m_small_stock->get_company($userid);
    		$this->load->template("templates/general","classify_ads/classify_view_all", "Classify Ads",$data);
    	}else{//when not yet log-in
    		
    	}
    }
}
?>